Skip to content

Comments

Modifications added to streamline demo.#4

Open
glecaros wants to merge 4 commits intomainfrom
demo
Open

Modifications added to streamline demo.#4
glecaros wants to merge 4 commits intomainfrom
demo

Conversation

@glecaros
Copy link
Owner

This pull request introduces several changes across the backend and frontend of the application. The most significant changes include improvements to the ProcessRequest method in SemanticKernelApp.cs, updates to the frontend's ChatWindow.tsx, and changes to the project's dependencies and configuration.

Backend improvements:

  • Backend/Services/SemanticKernelApp.cs: The ProcessRequest method has been updated to improve the handling of chat history. A cacheKey variable has been introduced to store the session ID, which is used to retrieve and update the chat history from the cache. The updated chat history is now stored back in the cache after each bot response. [1] [2]

Frontend improvements:

  • Frontend/src/ChatWindow.tsx: The ChatWindow function has been modified to improve the handling of chat messages. The user's message is now added to the messages state only after the bot's response has been received. The updateMessages function has been introduced to update the bot's response message with the content of each response delta and update the messages state. [1] [2]

Project configuration and dependencies:

  • Frontend/vite.config.ts: The server configuration has been updated to use HTTPS with the key and certificate read from the certs directory.
  • Frontend/.gitignore: The certs directory has been added to the .gitignore file.
  • Frontend/package.json and Frontend/package-lock.json: The @types/node package has been added to the project's devDependencies. [1] [2] [3] [4]

Minor changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant